package com.gitee.huanminabc.db_freedom.wrapper;

import lombok.Data;

@Data
public  abstract class AbstractBaseWrapper<T, Children extends AbstractBaseWrapper<T, Children>> implements SqlWrapper<T> {
    protected final Children typedThis = (Children) this; //对象本身
    private SQL SQL=new SQL();
    public AbstractBaseWrapper() {
    }
    public AbstractBaseWrapper( SQL sql) {
        this.SQL.set(sql);//这样保证了sql的引用不变
    }

    @Override
    public SQL SQL() {
        return SQL;
    }

}
